"""
MinIO CLI 安装配置
"""

from setuptools import setup, find_packages
from pathlib import Path

# 读取 README
this_directory = Path(__file__).parent
long_description = ""
readme_file = this_directory / "README.md"
if readme_file.exists():
    long_description = readme_file.read_text(encoding='utf-8')

# 读取依赖
requirements = []
req_file = this_directory / "minio_cli_requirements.txt"
if req_file.exists():
    with open(req_file, 'r', encoding='utf-8') as f:
        requirements = [line.strip() for line in f if line.strip() and not line.startswith('#')]

setup(
    name='minio-cli',
    version='1.0.0',
    author='Your Name',
    author_email='your.email@example.com',
    description='MinIO 对象存储命令行工具和 Python 客户端库',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/yourusername/minio-cli',
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'minio_cli': ['config/*.yaml'],
    },
    install_requires=requirements,
    entry_points={
        'console_scripts': [
            'minio-cli=minio_cli.cli:main',
        ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Programming Language :: Python :: 3.11',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
    ],
    python_requires='>=3.7',
    keywords='minio s3 object-storage cli',
    project_urls={
        'Bug Reports': 'https://github.com/yourusername/minio-cli/issues',
        'Source': 'https://github.com/yourusername/minio-cli',
    },
)

